export default class CorporateKnowledge {
  static list (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/knowledge', 'get', params, axiosOption, httpOption);
  }
  static add (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/knowledge', 'post', params, axiosOption, httpOption);
  }
  static update (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/knowledge/update', 'post', params, axiosOption, httpOption);
  }
  static detail (sender, params, axiosOption, httpOption) {
    return sender.doUrl(`admin/knowledge/${params}`, 'get', axiosOption, httpOption);
  }
  static delete (sender, params, axiosOption, httpOption) {
    return sender.doUrl(`admin/knowledge/delete/${params}`, 'get', axiosOption, httpOption);
  }
  static deletes (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/knowledge/delete', 'post', params, axiosOption, httpOption);
  }
  static file (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/knowledge/fileUpload', 'post', params, axiosOption, httpOption);
  }
  static download (sender, params, fileName) {
    return sender.download('admin/knowledge/download', params, fileName);
  }
  // static export (sender, params, fileName) {
  //   return sender.download('admin/upms/sysUser/export', params, fileName);
  // }
  static addBrowseTimes (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/knowledge/addBrowseTimes', 'get', params, axiosOption, httpOption);
  }
}
